package com.qyhl.webtv.commonlib.entity.config;

import com.qyhl.webtv.basiclib.utils.StringUtils;
import com.qyhl.webtv.commonlib.entity.home.HomeBean;
import com.qyhl.webtv.commonlib.entity.news.AdvertiseBean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Cookie on 2017/2/6.
 */

public class AppConfigBean implements Serializable {
    public List<SecMenus> seconedMenus; //导航栏

    public List<SecMenus> getSeconedMenus() {
        return seconedMenus;
    }

    public List<ThreeMenus> getThreeMenus() {
        return threeMenus;
    }

    public void setThreeMenus(List<ThreeMenus> threeMenus) {
        this.threeMenus = threeMenus;
    }

    public List<ThreeMenus> threeMenus;

    public static class ThreeMenus implements Serializable {
        public int styleId;
        public int secondId;
        public int siteId;
        public String menuImg; //图标
        public int typeId;
        public String url;    //链接
        public String menuName; //标题

        public int getStyleId() {
            return styleId;
        }

        public void setStyleId(int styleId) {
            this.styleId = styleId;
        }

        public int getSecondId() {
            return secondId;
        }

        public void setSecondId(int secondId) {
            this.secondId = secondId;
        }

        public int getSiteId() {
            return siteId;
        }

        public void setSiteId(int siteId) {
            this.siteId = siteId;
        }

        public String getMenuImg() {
            return menuImg;
        }

        public void setMenuImg(String menuImg) {
            this.menuImg = menuImg;
        }

        public int getTypeId() {
            return typeId;
        }

        public void setTypeId(int typeId) {
            this.typeId = typeId;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getMenuName() {
            return menuName;
        }

        public void setMenuName(String menuName) {
            this.menuName = menuName;
        }

        @Override
        public String toString() {
            return "SecMenus{" +
                    "styleId=" + styleId +
                    ", secondId=" + secondId +
                    ", siteId=" + siteId +
                    ", menuImg='" + menuImg + '\'' +
                    ", typeId=" + typeId +
                    ", url='" + url + '\'' +
                    ", menuName='" + menuName + '\'' +
                    '}';
        }
    }

    public void setSeconedMenus(List<SecMenus> seconedMenus) {
        this.seconedMenus = seconedMenus;
    }

    public static class SecMenus implements Serializable {
        public int styleId;
        public int secondId;
        public int siteId;
        public String menuImg; //图标
        public int typeId;
        public String url;    //链接
        public String menuName; //标题

        public int getStyleId() {
            return styleId;
        }

        public void setStyleId(int styleId) {
            this.styleId = styleId;
        }

        public int getSecondId() {
            return secondId;
        }

        public void setSecondId(int secondId) {
            this.secondId = secondId;
        }

        public int getSiteId() {
            return siteId;
        }

        public void setSiteId(int siteId) {
            this.siteId = siteId;
        }

        public String getMenuImg() {
            return menuImg;
        }

        public void setMenuImg(String menuImg) {
            this.menuImg = menuImg;
        }

        public int getTypeId() {
            return typeId;
        }

        public void setTypeId(int typeId) {
            this.typeId = typeId;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getMenuName() {
            return menuName;
        }

        public void setMenuName(String menuName) {
            this.menuName = menuName;
        }

        @Override
        public String toString() {
            return "SecMenus{" +
                    "styleId=" + styleId +
                    ", secondId=" + secondId +
                    ", siteId=" + siteId +
                    ", menuImg='" + menuImg + '\'' +
                    ", typeId=" + typeId +
                    ", url='" + url + '\'' +
                    ", menuName='" + menuName + '\'' +
                    '}';
        }
    }

    public int sectionBannerNum;
    public String advStyle;
    public String appName;
    public int appColor;
    public int sectionId;
    public int siteId;
    public String appLoadingImg;  //启动图
    public String advUrl;     //广告链接
    public String sectionName;
    public String appTitleLogoAndroid;
    public int todayRec;
    private List<HomeBean.SecMenus> centerTabMenus;

    public int getTodayRec() {
        return todayRec;
    }

    public void setTodayRec(int todayRec) {
        this.todayRec = todayRec;
    }

    public List<HomeBean.SecMenus> getCenterTabMenus() {
        return centerTabMenus;
    }

    public void setCenterTabMenus(List<HomeBean.SecMenus> centerTabMenus) {
        this.centerTabMenus = centerTabMenus;
    }

    private List<startAdvNew> startAdvList;

    public List<AppConfigBean.startAdvNew> getStartAdvList() {
        return startAdvList;
    }

    public void setStartAdvList(List<AppConfigBean.startAdvNew> startAdvList) {
        this.startAdvList = startAdvList;
    }

    public String getAppTitleLogoAndroid() {
        return appTitleLogoAndroid;
    }

    public void setAppTitleLogoAndroid(String appTitleLogoAndroid) {
        this.appTitleLogoAndroid = appTitleLogoAndroid;
    }

    public String getAppLogo() {
        return appLogo;
    }

    public void setAppLogo(String appLogo) {
        this.appLogo = appLogo;
    }

    public String appLogo;
    public String appTitleLogo;
    public String homeStyle;

    public String getHomeStyle() {
        return homeStyle;
    }

    public void setHomeStyle(String homeStyle) {
        this.homeStyle = homeStyle;
    }

    public String getAppTitleLogo() {
        if (StringUtils.isEmpty(appTitleLogoAndroid)) {
            return appTitleLogo;
        } else {
            return appTitleLogoAndroid;
        }

    }

    public void setAppTitleLogo(String appTitleLogo) {
        this.appTitleLogo = appTitleLogo;
    }

    public int minComment;
    public int bannerNum;
    public int minLike;            //喜欢阈值
    public int minPlay;           //浏览阈值
    public startAdv startAdv;    //开机广告 旧版
    public startAdvNew startAdvNew;
    public List<tabMenus> tabMenus;  //首页底部菜单信息
    public String cmsUrl;
    public String shopUrl;
    public String circelUrl;
    public String userUrl;
    public String actShareUrl;
    public String receiptUrl;  //开票有喜地址
    public String tagName;      //站点目录名
    public String sections;
    public String ruralSection;
    public String newsStyle;
    public int commentRule;//0 先发后审 1先审后发
    public List<MessageDetailBean> topMessage;//弹框消息
    public String integralSwitch;//积分开关
    private int homeGray;//app置灰
    private int linkUrlShare;//链接分享开关

    private int secondMenuStyle;//快速入口样式

    public int getSecondMenuStyle() {
        return secondMenuStyle;
    }

    public void setSecondMenuStyle(int secondMenuStyle) {
        this.secondMenuStyle = secondMenuStyle;
    }

    public int getHomeGray() {
        return homeGray;
    }

    public void setHomeGray(int homeGray) {
        this.homeGray = homeGray;
    }

    public int getLinkUrlShare() {
        return linkUrlShare;
    }

    public void setLinkUrlShare(int linkUrlShare) {
        this.linkUrlShare = linkUrlShare;
    }

    public String getIntegralSwitch() {
        return integralSwitch;
    }

    public void setIntegralSwitch(String integralSwitch) {
        this.integralSwitch = integralSwitch;
    }

    public List<MessageDetailBean> getTopMessage() {
        return topMessage;
    }

    public void setTopMessage(List<MessageDetailBean> topMessage) {
        this.topMessage = topMessage;
    }

    public String getReceiptUrl() {
        return receiptUrl;
    }

    public void setReceiptUrl(String receiptUrl) {
        this.receiptUrl = receiptUrl;
    }

    public int getCommentRule() {
        return commentRule;
    }

    public void setCommentRule(int commentRule) {
        this.commentRule = commentRule;
    }

    public String advSwitch;  //广告开关  0:都关闭    0,1: 首页关  列表开    1,1:都开   1,0:首页开,列表关

    public String getAdvSwitch() {
        return advSwitch;
    }

    public void setAdvSwitch(String advSwitch) {
        this.advSwitch = advSwitch;
    }

    public String getAdvStyle() {
        return advStyle;
    }

    public void setAdvStyle(String advStyle) {
        this.advStyle = advStyle;
    }

    public AppConfigBean.startAdvNew getStartAdvNew() {
        return startAdvNew;
    }

    public void setStartAdvNew(AppConfigBean.startAdvNew startAdvNew) {
        this.startAdvNew = startAdvNew;
    }

    public String getNewsStyle() {
        return newsStyle;
    }

    public void setNewsStyle(String newsStyle) {
        this.newsStyle = newsStyle;
    }

    public String getRuralSection() {
        return ruralSection;
    }

    public void setRuralSection(String ruralSection) {
        this.ruralSection = ruralSection;
    }

    public String getSections() {
        return sections;
    }

    public void setSections(String sections) {
        this.sections = sections;
    }

    public int getSectionBannerNum() {
        return sectionBannerNum;
    }

    public void setSectionBannerNum(int sectionBannerNum) {
        this.sectionBannerNum = sectionBannerNum;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public int getAppColor() {
        return appColor;
    }

    public void setAppColor(int appColor) {
        this.appColor = appColor;
    }

    public int getSectionId() {
        return sectionId;
    }

    public void setSectionId(int sectionId) {
        this.sectionId = sectionId;
    }

    public int getSiteId() {
        return siteId;
    }

    public void setSiteId(int siteId) {
        this.siteId = siteId;
    }

    public String getAppLoadingImg() {
        return appLoadingImg;
    }

    public void setAppLoadingImg(String appLoadingImg) {
        this.appLoadingImg = appLoadingImg;
    }

    public String getAdvUrl() {
        return advUrl;
    }

    public void setAdvUrl(String advUrl) {
        this.advUrl = advUrl;
    }

    public class startAdvNew implements Serializable {
        public int duration;
        public int id;
        public String videoType;
        public String jumpover; //是否可以跳过
        public String name;//广告名称
        public String style;
        public String position;
        public String type;
        public List<AdvertiseBean> advertise;

        public int getDuration() {
            return duration;
        }

        public void setDuration(int duration) {
            this.duration = duration;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getVideoType() {
            return videoType;
        }

        public void setVideoType(String videoType) {
            this.videoType = videoType;
        }

        public String getJumpover() {
            return jumpover;
        }

        public void setJumpover(String jumpover) {
            this.jumpover = jumpover;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getStyle() {
            return style;
        }

        public void setStyle(String style) {
            this.style = style;
        }

        public String getPosition() {
            return position;
        }

        public void setPosition(String position) {
            this.position = position;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public List<AdvertiseBean> getAdvertise() {
            return advertise;
        }

        public void setAdvertise(List<AdvertiseBean> advertise) {
            this.advertise = advertise;
        }
    }

    public class startAdv implements Serializable {
        public String UploadFilePath1;
        public String outurl;

        public String getUploadFilePath1() {
            return UploadFilePath1;
        }

        public void setUploadFilePath1(String uploadFilePath1) {
            UploadFilePath1 = uploadFilePath1;
        }

        public String getOuturl() {
            return outurl;
        }

        public void setOuturl(String outurl) {
            this.outurl = outurl;
        }
    }

    public class tabMenus implements Serializable {
        public String menuIcon;
        public int siteId;
        public int tabId;
        public int typeId;
        public String menuIconPre;
        public String menuName;
        public String url;
        public boolean isCheck = false;//自定义 是否被选中

        public boolean isCheck() {
            return isCheck;
        }

        public void setCheck(boolean check) {
            isCheck = check;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getMenuIcon() {
            return menuIcon;
        }

        public void setMenuIcon(String menuIcon) {
            this.menuIcon = menuIcon;
        }

        public int getSiteId() {
            return siteId;
        }

        public void setSiteId(int siteId) {
            this.siteId = siteId;
        }

        public int getTabId() {
            return tabId;
        }

        public void setTabId(int tabId) {
            this.tabId = tabId;
        }

        public int getTypeId() {
            return typeId;
        }

        public void setTypeId(int typeId) {
            this.typeId = typeId;
        }

        public String getMenuIconPre() {
            return menuIconPre;
        }

        public void setMenuIconPre(String menuIconPre) {
            this.menuIconPre = menuIconPre;
        }

        public String getMenuName() {
            return menuName;
        }

        public void setMenuName(String menuName) {
            this.menuName = menuName;
        }

        @Override
        public String toString() {
            return "tabMenus{" +
                    "menuIcon='" + menuIcon + '\'' +
                    ", siteId=" + siteId +
                    ", tabId=" + tabId +
                    ", typeId=" + typeId +
                    ", menuIconPre='" + menuIconPre + '\'' +
                    ", menuName='" + menuName + '\'' +
                    ", url='" + url + '\'' +
                    '}';
        }
    }

    public String getSectionName() {
        return sectionName;
    }

    public void setSectionName(String sectionName) {
        this.sectionName = sectionName;
    }

    public int getMinComment() {
        return minComment;
    }

    public void setMinComment(int minComment) {
        this.minComment = minComment;
    }

    public int getBannerNum() {
        return bannerNum;
    }

    public void setBannerNum(int bannerNum) {
        this.bannerNum = bannerNum;
    }

    public List<AppConfigBean.tabMenus> getTabMenus() {
        return tabMenus;
    }

    public void setTabMenus(List<AppConfigBean.tabMenus> tabMenus) {
        this.tabMenus = tabMenus;
    }

    public int getMinLike() {
        return minLike;
    }

    public void setMinLike(int minLike) {
        this.minLike = minLike;
    }

    public int getMinPlay() {
        return minPlay;
    }

    public void setMinPlay(int minPlay) {
        this.minPlay = minPlay;
    }

    public AppConfigBean.startAdv getStartAdv() {
        return startAdv;
    }

    public void setStartAdv(AppConfigBean.startAdv startAdv) {
        this.startAdv = startAdv;
    }

    public String getCmsUrl() {
        return cmsUrl;
    }

    public void setCmsUrl(String cmsUrl) {
        this.cmsUrl = cmsUrl;
    }

    public String getShopUrl() {
        return shopUrl;
    }

    public void setShopUrl(String shopUrl) {
        this.shopUrl = shopUrl;
    }

    public String getUserUrl() {
        return userUrl;
    }

    public void setUserUrl(String userUrl) {
        this.userUrl = userUrl;
    }

    public String getCircelUrl() {
        return circelUrl;
    }

    public void setCircelUrl(String circelUrl) {
        this.circelUrl = circelUrl;
    }

    public String getActShareUrl() {
        return actShareUrl;
    }

    public void setActShareUrl(String actShareUrl) {
        this.actShareUrl = actShareUrl;
    }

    public String getTagName() {
        return tagName;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }

    @Override
    public String toString() {
        return "AppConfigBean{" +
                "appName='" + appName + '\'' +
                ", appColor=" + appColor +
                ", sectionId=" + sectionId +
                ", siteId=" + siteId +
                ", appLoadingImg='" + appLoadingImg + '\'' +
                ", advUrl='" + advUrl + '\'' +
                ", sectionName='" + sectionName + '\'' +
                ", minComment=" + minComment +
                ", bannerNum=" + bannerNum +
                ", minLike=" + minLike +
                ", minPlay=" + minPlay +
                ", startAdv=" + startAdv +
                ", tabMenus=" + tabMenus +
                ", cmsUrl='" + cmsUrl + '\'' +
                ", shopUrl='" + shopUrl + '\'' +
                ", circelUrl='" + circelUrl + '\'' +
                ", userUrl='" + userUrl + '\'' +
                ", actShareUrl='" + actShareUrl + '\'' +
                ", tagName='" + tagName + '\'' +
                '}';
    }

}
